import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes=[
  {
    path:'/',
    component:()=>import("@/views/log-in.vue")
  },
  //后面页面路由按照这样写，上面不用引入页面
  {
    path:'/login',
    component:()=>import("@/views/log-in.vue")
  },
  {
    path:'/index',
    component:()=>import("@/views/InDex.vue")
  }
]

const router=new VueRouter({
  routes
})

export default router